package com.home.demo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * 
 * @author ${author}
 * @email ${email}
 * @date 2024-02-21 15:24:19
 */
@Data
@TableName("chat_history")
public class ChatHistoryEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	private String id;
	/**
	 * 发送人id
	 */
	private String sendId;
	/**
	 * 发送人名称
	 */
	private String sendName;
	/**
	 * 接收人名称
	 */
	private String receiveName;
	/**
	 * 接收人id
	 */
	private String receiveId;
	/**
	 * 发送内容
	 */
	private String content;
	/**
	 * 料体时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date createTime;
	/**
	 * 状态
	 */
	private Integer status;


}
